import request from '@/utils/request'

const api_name = '/educenter/user-history'
export default {
  // 记录用户浏览记录
  collectHistory(history) {
    return request({
      url: `${api_name}`,
      method: 'post',
      data: history
    })
  },
  getAllHistory(id){
    return request({
      url: `${api_name}/getAllHistory/${id}`,
      method: 'get',
    })
  }
}
